// ex7_13_10.cpp
#include <iostream>

double calculate(double x, double y, double (*fp)(double, double));
double add(double x, double y);
int main(void)
{
	using std::cout;
	double q = calculate(2.5, 10.4, add);
	cout << "calculate(2.5, 10.4, add); " << q << "\n"; 
}

double add(double x, double y)
{
	return x + y;
}
double calculate(double x, double y, double (*fp)(double, double))
{
	double result = fp(x, y);
	return result;
}
